<template>
  <div class="aside-wrap">
    <el-scrollbar height="500px">
      <div class="user-manage">
        <h4>我的账户</h4>
        <div class="links">
          <RouterLink to="/me" exact-active-class="active">个人中心</RouterLink>
          <RouterLink to="/user/notification" exact-active-class="active">消息通知</RouterLink>
          <RouterLink to="/user/info" exact-active-class="active">个人信息</RouterLink>
          <RouterLink to="/user/set" exact-active-class="active">安全设置</RouterLink>
          <RouterLink to="/user/address" exact-active-class="active">地址管理</RouterLink>
          <RouterLink to="/user/integral" exact-active-class="active">我的积分</RouterLink>
          <RouterLink to="/user/footprint" exact-active-class="active">我的足迹</RouterLink>
          <!-- <RouterLink to="/user/invitetion" exact-active-class="active">邀请有礼</RouterLink>
          <RouterLink to="/user/lottery" exact-active-class="active">幸运抽奖</RouterLink> -->
        </div>
        <h4>交易管理</h4>
        <div class="links">
          <RouterLink to="/user/order" active-class="active">我的订单</RouterLink>
          <!-- <RouterLink to="/user/coupon" exact-active-class="active">优惠券</RouterLink> -->
          <a href="javascript:;">礼品卡</a>
          <RouterLink to="/user/evaluate" active-class="active">评价晒单</RouterLink>
          <a href="javascript:;">售后服务</a>
        </div>
        <h4>收藏&关注</h4>
        <div class="links">
          <RouterLink to="/user/collect-goods" active-class="active">收藏的商品</RouterLink>
          <RouterLink to="/user/special-topic" active-class="active">收藏的专题</RouterLink>
          <RouterLink to="/user/follow-brand" active-class="active">关注的品牌</RouterLink>
          <RouterLink to="/user/follow-goods" active-class="active">关注的商品</RouterLink>
        </div>
        <h4>帮助中心</h4>
        <div class="links">
          <a href="javascript:;">帮助中心</a>
          <a href="javascript:;">在线客服</a>
        </div>
      </div>
    </el-scrollbar>
  </div>
</template>
  
<script setup>
</script>
  
<style scoped lang='scss'>
  .aside-wrap {
    width: 220px;
    margin-right: 20px;
    border-radius: 2px;
    .user-manage {
      background-color: #fff;
      h4 {
        font-size: 18px;
        font-weight: 400;
        padding: 20px 52px 5px;
        border-top: 1px solid #f6f6f6;
      }
  
      .links {
        padding: 0 52px 10px;
      }
  
      a {
        display: block;
        line-height: 1;
        padding: 15px 0;
        font-size: 14px;
        color: #666;
        position: relative;
  
        &:hover{
          color: $main-color;
        }
        &.active {
          color: $main-color;
  
          &:before {
            display: block;
          }
        }
  
        &:before {
          content: "";
          display: none;
          width: 6px;
          height: 6px;
          border-radius: 50%;
          position: absolute;
          top: 19px;
          left: -16px;
          background-color: $main-color;
        }
      }
    }
  }
</style>